package com.google.code.p.restrpc.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RemoteService {
    
    /**
     * The annotation value is equivalent to the <code>serviceName</code>
     * attribute, for simple default usage.
     */
    String value() default "";
    
    /**
     * if both value() and serviceName() is not empty,the value of serviceName()
     * is prior to value()
     * 
     * @return
     */
    String serviceName() default "";
    
    /**
     * @return the description of the RemoteService
     */
    String description() default "";
    
}
